project(chapter_03)
find_package(OpenCV  REQUIRED)
include_directories(${OpenCV_INCLUDE_DIRS})
find_package(Pangolin CONFIG REQUIRED)

add_executable(undistort_image src/undistort_image.cpp )
target_link_libraries(undistort_image ${OpenCV_LIBS})

add_executable(disparity src/disparity.cpp )
target_link_libraries(disparity PRIVATE ${Pangolin_LIBRARIES} ${OpenCV_LIBS})


add_executable(sad src/sad.cpp )
target_link_libraries(sad ${OpenCV_LIBS})


add_executable(sgbm src/sgbm.cpp )
target_link_libraries(sgbm ${OpenCV_LIBS})


add_executable(opencv_demo src/opencv_demo.cpp )
target_link_libraries(opencv_demo ${OpenCV_LIBS})